home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2300 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1003 b   |  44 lines

  1. Path: ornews.intel.com!news
  2. From: thurman_b_miller@ccm2.hf.intel.com (Thurman Miller)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie question ??
  5. Date: Wed, 17 Jan 1996 00:09:08 GMT
  6. Organization: Intel Corporation
  7. Message-ID: <4dhepa$759@ornews.intel.com>
  8. References: <4davoi$1vg@peach.america.net>
  9. NNTP-Posting-Host: thurman-pc.ssd.intel.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. dread@america.net (dread) wrote:
  13.  
  14. >I get the following error when I try to rebuild a very simple project
  15.  
  16. >LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol
  17. >"_WinMain@16"
  18.  
  19.  
  20. >here is the code
  21.  
  22. >#include <iostream.h>
  23. >main(){
  24. >cout << "This is a test";
  25. >}
  26.  
  27. >Using VC++ 2 and win95.  Appreciate any help
  28.  
  29. >Later
  30. >d
  31.  
  32. Contrary to popular belief, this works just fine in VC++ in a windows
  33. environment. What you mistakenly did was not to make your project a
  34. "console application".
  35.  
  36. When you create a new project, the default is "MFC". Select "Console
  37. application" instead and it will work just fine.
  38.  
  39. Thurman
  40.  
  41.  
  42.  
  43.  
  44.